package com.youedata.modular.service.impl;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.youedata.modular.entity.ArchivalInformation;
import com.youedata.modular.mapper.ArchivalInformationMapper;
import com.youedata.modular.model.dto.ArchivalInformationDTO;
import com.youedata.modular.service.IArchivalInformationService;
import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import java.io.Serializable;
import java.util.List;
import java.util.Map;

/**
 * <p>
 * 档案信息表 服务实现类
 * </p>
 *
 * @author hao.yan
 * @date 2021-09-04
 */
@Service
@Transactional(rollbackFor = Exception.class)

public class ArchivalInformationServiceImpl extends ServiceImpl<ArchivalInformationMapper, ArchivalInformation> implements IArchivalInformationService {

    @Autowired
    private ArchivalInformationMapper archivalInformationMapper;

    @Override
    public Map<String, Object> detailById(Long id) {
        return this.archivalInformationMapper.detailById(id);
    }

    @Override
    public List<ArchivalInformation> pageSimpleInfo(Page page, ArchivalInformationDTO archivalInformationDTO) {
        return archivalInformationMapper.pageSimpleInfo(page, archivalInformationDTO);
    }
}

